package asanteIT.test_asanteIT;

import java.util.Arrays;

public class App 
{
    public static void main( String[] args )
    {
    String[] data = new String[]{
 "A brilliant, festive study of JS Bach uses literature and painting to illuminate his 'dance-impregnated' music, writes Peter Conrad",
 "Fatima Bhutto on Malala Yousafzai's fearless and still-controversial memoir",
 "Grisham's sequel to A Time to Kill is a solid courtroom drama about racial prejudice marred by a flawless white hero, writes John O'Connell",
 "This strange repackaging of bits and pieces does the Man Booker winner no favours, says Sam Leith",
 "Another book with music related content"
    };    

    IndiceInvertido.crearIndiceInvertido(data);
    String[] results = IndiceInvertido.get("music");

    // Debe mostrar 2
    System.out.println(results.length);   
     
    // Debe mostrar [".... music, writes Peter Conrad","Another book with music related ..."]
    System.out.println(Arrays.toString(results)); 
    
    }
}
